//
//  KSTempHeader.swift
//  ANOA
//
//  Created by 邱仙凯 on 2024/1/12.
//  Copyright © 2024 zwb. All rights reserved.
//

import UIKit
 

class KSTempHeader:UITableViewHeaderFooterView {
    
    lazy var lab1:UILabel = {
        let lab =  UILabel()
        lab.font = UIFont.systemFont(ofSize: 15)
        lab.numberOfLines = 0
        return lab
    }()
    lazy var lab2:UIButton = {
        let lab =  UIButton()
        lab.setTitleColor(#colorLiteral(red: 0.501960814, green: 0.501960814, blue: 0.501960814, alpha: 1), for: .normal)
        lab.titleLabel?.font = .systemFont(ofSize: 13)
        return lab
    }()
   
    
   
    lazy var rightImg:UIButton = {
       let v = UIButton()
        v.setBackgroundImage(UIImage(named: "zk_1"), for: .normal)
         return v
    }()
 
    
    override init(reuseIdentifier: String?) {
        super.init(reuseIdentifier: reuseIdentifier)
        
        self.contentView.backgroundColor = Theme.awModuleBgColor

        let headerView = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: 57))
        headerView.backgroundColor =  UIColor(kshex:"#ccf5ff")
        self.contentView.addSubview(headerView)
        
        headerView.addSubview(lab1)
        lab1.snp.makeConstraints { (make) in
            make.left.equalTo(self).offset(10)
            make.right.equalTo(self).offset(-30)
            make.centerY.equalTo(self)
        }
        headerView.addSubview(lab2)
        lab2.snp.makeConstraints { (make) in
            make.centerX.equalTo(self)
            make.centerY.equalTo(self).offset(4)
        }
     
        headerView.addSubview(rightImg)
        rightImg.snp.makeConstraints { (make) in
            make.right.equalTo(self).offset(-10)
            make.height.equalTo(15)
            make.width.equalTo(13)
            make.centerY.equalTo(self)
        }
        
  
        
    }
  
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
